package com.byxy.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="book")
public class Book implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8362429174556457181L;
	//id
	@Id
	@Column(name="id",length=10)
	private String id;
	//名称
	@Column(name="name",length=10)
	private String name;
	//数量
	private Integer quantity;
	//编号
	private Integer number;
	//类别
	@Column(name="category",length=20)
	private String category;
	public String getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public Integer getNumber() {
		return number;
	}
	public String getCategory() {
		return category;
	}
	public Book() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Book(String id, String name, Integer quantity, Integer number, String category) {
		super();
		this.id = id;
		this.name = name;
		this.quantity = quantity;
		this.number = number;
		this.category = category;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public void setCategory(String category) {
		this.category = category;
	}
}
